<?php

abstract class Dress extends Person
{
    private $component;
    public function decorate(Person $component)
    {
        $this->component = $component;
    }

    public function show()
    {
        $this->component->show();
    }
}